package component;

import java.awt.Dimension;
import java.awt.Insets;

import javax.swing.BorderFactory;
import javax.swing.JComboBox;
import javax.swing.JToolBar;
public class MyToolBar extends JToolBar {
	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	String[] list=new String[2];
	public JComboBox<Object> com=new JComboBox<Object>();
	public MyButton backbtn;
	public MyButton tobtn;
	public MyButton downbtn;
	public MyButton savebtn;
	public MyButton peoplebtn;
	public MyButton bandobtn;
	public MyButton clockbtn;
	public MyButton cutbtn;
	public MyButton closebtn ;
	public MyButton stopbtn;
	public MyButton phongtobtn;
	public MyButton newbtn;
	public MyButton openbtn;
	public MyToolBar() {
		this.setFloatable(true);
		this.setMargin(new Insets(10, 5, 5, 5));
		list[0]="aaaaaa";
		list[1]="bbbbbb";
		newbtn=new MyButton("","new.png");
		newbtn.setToolTipText("New");
		add(newbtn);
		openbtn=new MyButton("","add.png");
		openbtn.setToolTipText("Edit");
		add(openbtn);
		
		com.setToolTipText("ComBoBox");
		com.setEditable(true);
		com.setMaximumSize(new Dimension(150, 30));
		com.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 1));
		add(com);
		
		backbtn =new MyButton("","back.png");
		backbtn.setToolTipText("Back");
		add(backbtn);
		
		tobtn=new MyButton("","to.png");
		tobtn.setToolTipText("To");
		add(tobtn);
		downbtn =new MyButton("","down.png");
		downbtn.setToolTipText("Down");
		add(downbtn);
		
		savebtn=new MyButton("","save.png");
		savebtn.setToolTipText("Save");
		add(savebtn);
		
		peoplebtn=new MyButton("","people.png");
		peoplebtn.setToolTipText("People");
		add(peoplebtn);
	    bandobtn =new MyButton("","thang.png");
		bandobtn.setToolTipText("BanDo");
		add(bandobtn);
		
		clockbtn =new MyButton("","clock.png");
		clockbtn.setToolTipText("Clock");
		add(clockbtn);
		
		cutbtn=new MyButton("","cut.png");
		cutbtn.setToolTipText("Cut");
		add(cutbtn);
		closebtn=new MyButton("","close.png");
		closebtn.setToolTipText("Close");
		add(closebtn);
		
		stopbtn=new MyButton("","stop.png");
		stopbtn.setToolTipText("People");
		add(stopbtn);
		phongtobtn =new MyButton("","phongto.png");
		phongtobtn.setToolTipText("PhongTo");
		add(phongtobtn);
	}

}
